﻿
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 管理员表
    /// </summary>
    [SugarTable("xrc_admin", TableDescription = "管理员表")]
    public partial class XrcAdmin
    {
        /// <summary>
        /// 管理员表
        /// </summary>
        public XrcAdmin()
        {
        }

        /// <summary>
        /// 用户id
        /// </summary>
        [Display(Name = "用户id")]
        [SugarColumn(ColumnDescription = "用户id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }
        /// <summary>
        /// 所属分店ID
        /// </summary>
        [Display(Name = "所属分店ID")]
        [SugarColumn(ColumnDescription = "所属分店ID")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 gid { get; set; }
        /// <summary>
        /// 1超级管理2二级管理3工作人员
        /// </summary>
        [Display(Name = "1超级管理2二级管理3工作人员")]
        [SugarColumn(ColumnDescription = "1超级管理2二级管理3工作人员", IsNullable = true)]
        public System.String kind { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        [SugarColumn(ColumnDescription = "姓名", IsNullable = true)]
        [StringLength(100, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String name { get; set; }


        /// <summary>
        /// 用户名
        /// </summary>
        [Display(Name = "用户名")]
        [SugarColumn(ColumnDescription = "用户名", IsNullable = true)]
        [StringLength(100, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String username { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Display(Name = "密码")]
        [SugarColumn(ColumnDescription = "密码", IsNullable = true)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String password { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [SugarColumn(ColumnDescription = "状态", IsNullable = true)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.Byte state { get; set; }
        /// <summary>
        /// 前端用户ID
        /// </summary>
        [Display(Name = "前端用户ID")]
        [SugarColumn(ColumnDescription = "前端用户ID")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 userid { get; set; }
        /// <summary>
        /// openid
        /// </summary>
        [Display(Name = "openid")]
        [SugarColumn(ColumnDescription = "openid", IsNullable = true)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String openid { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        [Display(Name = "注册时间")]
        [SugarColumn(ColumnDescription = "注册时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime add_time { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true)]
        public System.DateTime? up_time { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Display(Name = "地址")]
        [SugarColumn(ColumnDescription = "地址", IsNullable = true)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String address { get; set; }


        /// <summary>
        /// 手机号（联系方式）
        /// </summary>
        [Display(Name = "手机号（联系方式）")]
        [SugarColumn(ColumnDescription = "手机号（联系方式）", IsNullable = true)]
        [StringLength(11, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [SugarColumn(ColumnDescription = "备注", IsNullable = true)]
        [StringLength(11, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String remarks { get; set; }
    }
}